package com.daoliuhe.scaffold.service;

import com.daoliuhe.scaffold.model.RoleAuthoritiesRelation;

public interface RoleAuthoritiesRelationService {
	
	Object getAuthPageData(RoleAuthoritiesRelation relation);
	
	Object saveRelation(RoleAuthoritiesRelation relation);

	Object deleteForAuth(String authId, String roleIds);
	
	Object deleteForRole(String authIds, String roleId);

	Object saveBatchUser(String userIds, String roleId);
	
	/**
	 * 根据多个权限的id和单个角色的id保存到关系表中
	 * @param authIds
	 * @param roleId
	 * @return
	 */
	Object saveBatchAuthForRole(String authIds, String roleId);
	
	/**
	 * 根据多个角色的id和单个权限的id保存到关系表中
	 * @param authId
	 * @param roleIds
	 * @return
	 */
	Object saveBatchRoleForAuth(String authId, String roleIds);
	/**
	 * 获取分页数据
	 * @param relation
	 * @return
	 */
	
	Object getRolePageData(RoleAuthoritiesRelation relation);
	
}
